cases of master theorem